home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 018 / amigadisplay / poster < prev    next >
Text File  |  1995-03-17  |  5KB  |  81 lines

  1. File: AMIGA.2556
  2. From: woods@glacier.ARPA (Don Woods)
  3. Newsgroups: net.micro.amiga
  4. Subject: AmigaDisplay (AmigaTerm --> display emulator)
  5. Date: 28 Mar 86 09:33:08 GMT
  6. Reply-To: woods@glacier.UUCP (Don Woods)
  7. Organization: Xerox Corporation
  8. Lines: 1155
  9.  
  10. Since my old display terminal was giving up the ghost, I latched onto
  11. Michael Mounier's "AmigaTerm" program and turned it into a "smart display"
  12. program that I call "AmigaDisplay".  AmigaDisplay is willing to behave like
  13. a "dumb terminal", i.e., one with no special functions except for "clear
  14. screen" (^L), or it will emulate a DataMedia 2500.  The dm2500 is in most
  15. Unix termcap files, but if you'd prefer something else it shouldn't be hard
  16. to change that part of the program.
  17.  
  18. The file send/capture menu commands now use Requesters to ask for the file
  19. name, instead of injecting characters into the midst of the displayed text.
  20. For the same reason, there is no indication given when a file-send
  21. operation finishes.  (If for some reason you can't tell when it's done, you
  22. can find out by checking whether the menu offers a "Start Send" or "Cancel
  23. Send" command.)  The send feature offers to change \n (line feed, ^J) into
  24. \r (carriage return, ^M), since the Amiga uses \n as line terminators but
  25. many systems want \r instead.  The capture feature offers the option of
  26. including control characters in the captured file; captured control
  27. characters are translated into visible characters using the "^" notation.
  28.  
  29. I added an audible bell.  You even get to choose among different volumes
  30. and pitches depending on whether there are people trying to sleep nearby.
  31. (No, the program doesn't automatically detect sleeping people.)  You can
  32. also opt for a visible bell (screen flash).
  33.  
  34. Some of the new features probably aren't of much use to people anywhere but
  35. Stanford, but those features shouldn't get in anyone's way.  E.g., the
  36. SU-AI machine uses 9-bit input; two extra "shift" keys control the 8th and
  37. 9th bits.  AmigaDisplay emulates this using the ALT and AMIGA keys.  If you
  38. just want 7-bit characters, don't hold down the ALT or AMIGA keys while
  39. you're typing.  Also, AmigaDisplay looks for a font named SAIL/8, which has
  40. various special characters hidden in codes $80-$9F.  SAIL/8 also includes
  41. slightly cleaner versions of some other characters, so that characters
  42. don't run into each other as often.  If you want a copy of the font, read
  43. on; I'm going to mail an assembler source that creates it per the example
  44. in the ROM Kernel Manual.  But if AmigaDisplay can't find the font, it just
  45. uses the default font, so you don't really need it.  I also constructed an
  46. icon for the program, but I'm not sure how to distribute that to the net.
  47.  
  48. AmigaDisplay interprets the keyboard pretty much as you might expect, but
  49. some of the more unusual keys produce characters that are frequently used
  50. at Stanford.  E.g., cursor-down and cursor-up produce ^L and ^K, ENTER
  51. produces ^J, and HELP produces ^@ (NUL).  The function keys produce short
  52. sequences that SU-AI expands in various (user-specified) ways.  All of
  53. these key assignments are easy to change if you have something you'd rather
  54. they do (e.g., map the up/down/left/right keys to EMACS commands).
  55.  
  56. The only AmigaTerm function I left out was the xmodem stuff.  None of the
  57. hosts I use support it, and my phone lines are good enough (well, at 300
  58. baud anyway) that I could get by with just file send/capture.  If someone
  59. wanted to add that stuff back, it wouldn't be hard.  I've structured the
  60. program to be pretty modular and extensible.  Oh yeah, it also no longer
  61. lets you change the window size; it takes over the whole screen to give you
  62. 24x80.  It has to take away the menu bar to get the room it needs, but the
  63. mouse menu button still brings up the menus, and one menu includes commands
  64. to move the AmigaDisplay screen to the back or front of the window stack,
  65. so you can get at other windows while AmigaDisplay is running.  That's
  66. where the Close Window command is hidden, too.
  67.  
  68. The source for AmigaDisplay illustrates some potentially useful techniques.
  69. For instance, it includes a couple of fairly short subroutines that let you
  70. construct an entire menu using just two lines: one that lists the menu
  71. strings and one to build the menu.  And as mentioned above, it includes
  72. examples of audio and requesters.  The source is split across 4 files: main
  73. program, menus/requesters, display, and audio.  All four files are
  74. concatenated below.  The SAIL/8 font will be mailed separately.
  75.  
  76. NOTE: I do NOT read netnews, since my primary host is not a usenet machine.
  77. So if you want to get in touch with me, you'll have to send mail directly.
  78. My primary address is Woods.pa@Xerox.ARPA, but if you can't force that
  79. through your mailer you can send to ...!glacier!woods or to
  80. ...!decwrl!parcvax!woods and it'll forward to me.
  81.